<?php
    //开启SESSION
    session_start(); 

    //设置好时区
    date_default_timezone_set('PRC');

    //设置页面字符集
    header("content-type:text/html;charset=utf-8");

    //连接好数据库
    include './config.php';
    include './func.php';
    $link = mysql_connect(HOST, USER, PWD);
    
    if(mysql_errno())
        exit(mysql_error());
    
    mysql_select_db(DB);
    
    mysql_set_charset(CHAR);




